
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>添加电脑IP</title>	
	
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link href="../static/css/bootstrap.css" rel="stylesheet">
	<link href="../static/css/site.css" rel="stylesheet">
    <link href="../static/css/bootstrap-responsive.css" rel="stylesheet">
	<script src="../static/js/1.7.2jquery.min.js"></script> <!-- or use local jquery -->
	<script src="../static/js/jqBootstrapValidation.js"></script>
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="my">Admin</a>
          <div class="btn-group pull-right">
			<a class="btn" href="my"><i class="icon-user"></i> Admin</a>
            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
              <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
			  <li><a href="my">个人资料</a></li>
              <li class="divider"></li>
              <li><a href="{{url_for('logout')}}">退出</a></li>
            </ul>
          </div>
          <div class="nav-collapse">
            <ul class="nav">
			<li><a href="my">首页</a></li>
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">通讯录 <b class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a href="show">用户</a></li>
					<li class="divider"></li>
					<li><a href="add">新建用户</a></li>
				</ul>
			  </li>
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">IP统计<b class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a href="lists_pc">IP列表</a></li>
					<li class="divider"></li>
					<li><a href="addpc">添加IP</a></li>
				</ul>
			  </li>
	
            </ul>
          </div>
        </div>
      </div>
    </div>

    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span3">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
              <li class="nav-header"><i class="icon-wrench"></i> 通讯录</li>
              <li><a href="show">用户</a></li>
              <li><a href="add">新建用户</a></li>
              <li class="nav-header"><i class="icon-signal"></i> IP统计</li>
              <li class="active"><a href="lists_pc">IP列表</a></li>
              <li><a href="addpc">添加IP</a></li>
              <li><a href="#">杂七杂八</a></li>
              <li class="nav-header"><i class="icon-user"></i> 资料</li>
              <li><a href="my">我的资料</a></li>
          
			  <li><a href="{{url_for('logout')}}">退出</a></li> 
            </ul>
          </div>
        </div>
        <div class="span9">
		  <div class="row-fluid">
			<div class="page-header">
				<h1>添加IP <small>ADD IP</small></h1>
			</div>
			
 <form class="valid form-horizontal"  action="{{ url_for("addpc") }}" method="post">
  
 			
				<fieldset>
				
				<div class="control-group">
						<label class="control-label" for="number">编号</label>
						<div class="controls">
							<input type="text" class="input-xlarge" id="number" name="number" required />
						</div>
					</div>	
					
					
				<div class="control-group">
						<label class="control-label" for="job">部门</label>
						<div class="controls">
							<input type="text" class="input-xlarge" id="job" name="job" required/>
						</div>
					</div>
					
				
				
					<div class="control-group">
						<label class="control-label" for="username">姓名</label>
						<div class="controls">
							<input type="text" class="input-xlarge" id="username" name="username" required/>
						</div>
					</div>
					
					
					
					
					
					<div class="control-group">
						<label class="control-label" for="ip">IP</label>
						<div class="controls">
							<input type="text" class="input-xlarge" id="ip" name="ip" required />
						</div>
					</div>
					
					
					
					<div class="control-group">
						<label class="control-label" for="mac">MAC</label>
						<div class="controls">
							<input type="text" class="input-xlarge" id="mac" name="mac" />
						</div>
					</div>
					
					
					<div class="control-group">
						<label class="control-label" for="mark">备注</label>
						<div class="controls">
							<input type="text" class="input-xlarge" id="mark" name="mark" />
						</div>
					</div>
					
					
					
  		
					
					
					
					<div class="form-actions">
						<input type="submit" class="btn btn-success btn-large" value="添加IP" /> <a class="btn" href="lists_pc">Cancel</a>
					</div>					
				</fieldset>
			</form>
			
		  </div>
        </div>
      </div>

      <hr>

      <footer class="well">
        &copy; Admin
      </footer>

    </div>

    <script src="../static/js/jquery.js"></script>
	<script src="../static/js/bootstrap.min.js"></script>
  </body>
</html>

<script>
  $(function () { $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); } );
</script>
